import request from '@/utils/request'

// 查询设备检测日志列表
export function listDeviceMonitor(query) {
  return request({
    url: '/monitor/deviceMonitor/list',
    method: 'get',
    params: query
  })
}

// 查询设备检测日志详细
export function getDeviceMonitor(id) {
  return request({
    url: '/monitor/deviceMonitor/' + id,
    method: 'get'
  })
}

// 新增设备检测日志
export function addDeviceMonitor(data) {
  return request({
    url: '/monitor/deviceMonitor',
    method: 'post',
    data: data
  })
}

// 修改设备检测日志
export function updateDeviceMonitor(data) {
  return request({
    url: '/monitor/deviceMonitor',
    method: 'put',
    data: data
  })
}

// 删除设备检测日志
export function delDeviceMonitor(id) {
  return request({
    url: '/monitor/deviceMonitor/' + id,
    method: 'delete'
  })
}
